package com.xiaoa.service;

import java.util.concurrent.TimeUnit;

import org.springframework.stereotype.Service;

@Service
public class DomeServiceImpl  implements  DomeService{

	
	public void testNb(String bu){
		System.out.println("bu="  + bu);
	}
	
	@Override
	public String test(String name, Integer age) {
		testNb("nihao1");
		testNb("nihao2");
		
		try {
			Thread.sleep(TimeUnit.SECONDS.toMillis(age));
		} catch (InterruptedException e) {
			e.printStackTrace();
		}
		
		test2(name, age);
		
		System.out.println("name " + name);

		return "aaa";
	}

	@Override
	public String test2(String name, Integer age) {
		System.out.println("test2:" + name);
		return null;
	}
	
	
	

}
